package study.chapter02.innerclass;

public class Outer {
    private String msg = "hello java";
    public void print(){
        Inner inner = new Inner();
        inner.innerPrint();
    }

    class Inner{
        public void innerPrint(){
            System.out.println(msg);
        }
    }

    public static void main(String[] args) {
        Outer out = new Outer();
        out.print();

    }
}
